package com.meritzfire.framework.mframe.common.exception;


/**
 * 
 * @author 105200326
 *
 */
public class HostIOException extends Exception{

	private int errorCode = -9999;
	
	public HostIOException(){
		super();
	}
	public HostIOException(String message){
		super(message);
	}

	public HostIOException(String message, int errorCode){
		super(message);
		setErrorCode(errorCode);
	}

	public HostIOException(Throwable cause){
		super(cause);
	}

	public HostIOException(String message,
	                 Throwable cause){
		super(message,cause);
	}
	public HostIOException(String message, int errorCode, Throwable cause){
		super(message,cause);
		setErrorCode(errorCode);
	}
	/**
	 * @return the errorCode
	 */
	public int getErrorCode() {
		return errorCode;
	}
	/**
	 * @param errorCode the errorCode to set
	 */
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
}
